package cn.amebius.simpledocker.entity.po;

import cn.amebius.simpledocker.exception.DataErrorException;

/**
 * tb_docker_group_relation的Po
 * @author 阿伟
 * @date 2023/7/28 20:07
 */
public class DockerGroupRelationPo extends BasePo{
    private Integer dockerId;

    private Integer groupId;

    public static void check(DockerGroupRelationPo dgrp) {
        if (dgrp == null || dgrp.dockerId.toString().isEmpty() || dgrp.groupId.toString().isEmpty()) {
            throw new DataErrorException("数据异常:docker小组丢失");
        }
        BasePo.check(dgrp);
    }
}
